import requests
from bs4 import BeautifulSoup

url = "http://122.51.0.97/"
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')

# 提取所有链接
for link in soup.find_all('a'):
    print("发现链接:", link.get('href'))

# 提取 JavaScript 文件
for script in soup.find_all('script', src=True):
    print("发现JS文件:", script['src'])